﻿using System;

namespace HobSoft.SoccerBet2014.Domain.Models.KeyHelper
{
    public class MarketKeyGenerate : IModelKeyGenerate<Market>
    {
        public string Create(Market mod)
        {
            return Create(mod.BmID, mod.GameID, mod.Host);
        }

        public string Create(params object[] args)
        {
            if (args.Length < 3)
                throw new ArgumentException("need args 3");
            return string.Format("{0}|{1}|{2}", args);
        }
    }
}
